package com.w.m.model;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: TODO
 * @author: Mr.wu
 * @date: 2022年03月28日 11:14
 */
public class Dog {
	private String name;
	private int age;
	@Autowired
	private Person person;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Person getPerson() {
		return person;
	}

	public void setPerson(Person person) {
		this.person = person;
		System.out.println("Dog set Person ...");
	}

	public Dog() {
		System.out.println("Dog is created......");
	}
}
